package com.yand.mapper.business.product;

import com.yand.api.entity.business.product.THfDiscountDetail;
import com.yand.api.entity.business.product.THfProductDetail;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


@Mapper
public interface THfDiscountDetailMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(THfDiscountDetail record);

    int insertSelective(THfDiscountDetail record);

    THfDiscountDetail selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(THfDiscountDetail record);

    int updateByPrimaryKey(THfDiscountDetail record);

    /**
     * 查询所有的折扣明细产品信息
     * @param record
     * @return
     */
    List<THfDiscountDetail> selectAllDiscountList(THfDiscountDetail record);

    /**
     * 通过充值的金额进行查询
     * @param record
     * @return
     */
    THfDiscountDetail selectDiscountBean(THfDiscountDetail record);

    /**
     * 通过查询的折扣获取
     * @param record
     * @return
     */
    THfDiscountDetail selectBeanByDiscount(THfDiscountDetail record);
}